﻿@{
    ViewBag.Title = "用户登录";
}

<div class="login">
<div class="login_left"></div>
<div class="login_right">
<form id="login" action="@Url.Action("login")" method="post" accept-charset="utf-8">	<div class="login_right_kb125"></div>
    <div class="login_right_1">
   	  	<div class="login_right_1_1">用户名：</div>
      	<div class="login_right_1_2"></div>
        <div class="login_right_1_3">
        <input type="text" name="email" value="" placeholder="请输入注册邮箱" autocomplete="off" id="username" class="input">        </div>
    </div>
    <div class="login_right_1">
   	  	<div class="login_right_1_1">密&nbsp; 码：</div>
        <div class="login_right_1_2"></div>
        <div class="login_right_1_3">
        <input type="password" name="password" value="" id="password" autocomplete="off" placeholder="登录密码" class="input">        </div>
    </div>
    <div class="login_right_2">
   	  	<div class="login_right_2_1"></div>
        <div class="login_right_2_2">
          <label><input type="checkbox" name="remember" value="true"> 记住用户名</label>
        </div>
    </div>
    <div class="login_right_2">
   	  	<div class="login_right_2_1"></div>
        <div class="login_right_2_2">
          <a href="http://member.ppdseo.com/member/forgot_password" class="blue">忘记密码</a>
        </div>
    </div>
    <div class="kb10"></div>
  	<div class="login_right_3">
    	<div class="login_right_3_1"><input type="submit" name="submit" value=""></div>
        <div class="login_right_3_2"><img src="~/content/images/login_03.gif"></div>
        <div class="login_right_3_3"><a href="@Url.Action("reg")"><img src="~/content/images/login_04.gif" border="0" alt="注册新用户"></a></div>
    </div>
    
</form>   
</div>
</div>

<input type="hidden" id="returnurl" value="@(string.IsNullOrEmpty(Request["returnurl"]) ? "/" : Request["returnurl"])" />


<script type="text/javascript">
    (function () {
        if ($.cookie("username")) {
            $("#username").val($.cookie("username"));
        }
        $("#login input:submit").click(function () {
            $("#login").postForm(function (d) {
                if (d.error) {
                    alert(d.error); return;
                }
                window.location.href = $("#returnurl").val();
            });
            return false;
        });
    })();
</script>